package com.example.telesys.pojo;

import java.util.ArrayList;
import java.util.List;

public class SupplierExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SupplierExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalIsNull() {
            addCriterion("broadbandtotal is null");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalIsNotNull() {
            addCriterion("broadbandtotal is not null");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalEqualTo(Integer value) {
            addCriterion("broadbandtotal =", value, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalNotEqualTo(Integer value) {
            addCriterion("broadbandtotal <>", value, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalGreaterThan(Integer value) {
            addCriterion("broadbandtotal >", value, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("broadbandtotal >=", value, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalLessThan(Integer value) {
            addCriterion("broadbandtotal <", value, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalLessThanOrEqualTo(Integer value) {
            addCriterion("broadbandtotal <=", value, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalIn(List<Integer> values) {
            addCriterion("broadbandtotal in", values, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalNotIn(List<Integer> values) {
            addCriterion("broadbandtotal not in", values, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalBetween(Integer value1, Integer value2) {
            addCriterion("broadbandtotal between", value1, value2, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andBroadbandtotalNotBetween(Integer value1, Integer value2) {
            addCriterion("broadbandtotal not between", value1, value2, "broadbandtotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalIsNull() {
            addCriterion("phonetotal is null");
            return (Criteria) this;
        }

        public Criteria andPhonetotalIsNotNull() {
            addCriterion("phonetotal is not null");
            return (Criteria) this;
        }

        public Criteria andPhonetotalEqualTo(Integer value) {
            addCriterion("phonetotal =", value, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalNotEqualTo(Integer value) {
            addCriterion("phonetotal <>", value, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalGreaterThan(Integer value) {
            addCriterion("phonetotal >", value, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("phonetotal >=", value, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalLessThan(Integer value) {
            addCriterion("phonetotal <", value, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalLessThanOrEqualTo(Integer value) {
            addCriterion("phonetotal <=", value, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalIn(List<Integer> values) {
            addCriterion("phonetotal in", values, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalNotIn(List<Integer> values) {
            addCriterion("phonetotal not in", values, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalBetween(Integer value1, Integer value2) {
            addCriterion("phonetotal between", value1, value2, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andPhonetotalNotBetween(Integer value1, Integer value2) {
            addCriterion("phonetotal not between", value1, value2, "phonetotal");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNull() {
            addCriterion("supplierid is null");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNotNull() {
            addCriterion("supplierid is not null");
            return (Criteria) this;
        }

        public Criteria andSupplieridEqualTo(String value) {
            addCriterion("supplierid =", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotEqualTo(String value) {
            addCriterion("supplierid <>", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThan(String value) {
            addCriterion("supplierid >", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThanOrEqualTo(String value) {
            addCriterion("supplierid >=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThan(String value) {
            addCriterion("supplierid <", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThanOrEqualTo(String value) {
            addCriterion("supplierid <=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLike(String value) {
            addCriterion("supplierid like", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotLike(String value) {
            addCriterion("supplierid not like", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridIn(List<String> values) {
            addCriterion("supplierid in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotIn(List<String> values) {
            addCriterion("supplierid not in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridBetween(String value1, String value2) {
            addCriterion("supplierid between", value1, value2, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotBetween(String value1, String value2) {
            addCriterion("supplierid not between", value1, value2, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSuppliernameIsNull() {
            addCriterion("suppliername is null");
            return (Criteria) this;
        }

        public Criteria andSuppliernameIsNotNull() {
            addCriterion("suppliername is not null");
            return (Criteria) this;
        }

        public Criteria andSuppliernameEqualTo(String value) {
            addCriterion("suppliername =", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameNotEqualTo(String value) {
            addCriterion("suppliername <>", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameGreaterThan(String value) {
            addCriterion("suppliername >", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameGreaterThanOrEqualTo(String value) {
            addCriterion("suppliername >=", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameLessThan(String value) {
            addCriterion("suppliername <", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameLessThanOrEqualTo(String value) {
            addCriterion("suppliername <=", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameLike(String value) {
            addCriterion("suppliername like", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameNotLike(String value) {
            addCriterion("suppliername not like", value, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameIn(List<String> values) {
            addCriterion("suppliername in", values, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameNotIn(List<String> values) {
            addCriterion("suppliername not in", values, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameBetween(String value1, String value2) {
            addCriterion("suppliername between", value1, value2, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliernameNotBetween(String value1, String value2) {
            addCriterion("suppliername not between", value1, value2, "suppliername");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalIsNull() {
            addCriterion("suppliertotal is null");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalIsNotNull() {
            addCriterion("suppliertotal is not null");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalEqualTo(Integer value) {
            addCriterion("suppliertotal =", value, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalNotEqualTo(Integer value) {
            addCriterion("suppliertotal <>", value, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalGreaterThan(Integer value) {
            addCriterion("suppliertotal >", value, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("suppliertotal >=", value, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalLessThan(Integer value) {
            addCriterion("suppliertotal <", value, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalLessThanOrEqualTo(Integer value) {
            addCriterion("suppliertotal <=", value, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalIn(List<Integer> values) {
            addCriterion("suppliertotal in", values, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalNotIn(List<Integer> values) {
            addCriterion("suppliertotal not in", values, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalBetween(Integer value1, Integer value2) {
            addCriterion("suppliertotal between", value1, value2, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andSuppliertotalNotBetween(Integer value1, Integer value2) {
            addCriterion("suppliertotal not between", value1, value2, "suppliertotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalIsNull() {
            addCriterion("traffictotal is null");
            return (Criteria) this;
        }

        public Criteria andTraffictotalIsNotNull() {
            addCriterion("traffictotal is not null");
            return (Criteria) this;
        }

        public Criteria andTraffictotalEqualTo(Integer value) {
            addCriterion("traffictotal =", value, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalNotEqualTo(Integer value) {
            addCriterion("traffictotal <>", value, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalGreaterThan(Integer value) {
            addCriterion("traffictotal >", value, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("traffictotal >=", value, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalLessThan(Integer value) {
            addCriterion("traffictotal <", value, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalLessThanOrEqualTo(Integer value) {
            addCriterion("traffictotal <=", value, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalIn(List<Integer> values) {
            addCriterion("traffictotal in", values, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalNotIn(List<Integer> values) {
            addCriterion("traffictotal not in", values, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalBetween(Integer value1, Integer value2) {
            addCriterion("traffictotal between", value1, value2, "traffictotal");
            return (Criteria) this;
        }

        public Criteria andTraffictotalNotBetween(Integer value1, Integer value2) {
            addCriterion("traffictotal not between", value1, value2, "traffictotal");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}